<!DOCTYPE html>
<html lang = "en">
<head>
  <meta charset = "UTF-8">
  <meta http-equiv = "X-UA-Compatible" content = "IE = edge">
  <meta name = "viewport" content = "width = device-width, initial-scale = 1.0">
  <title>Document</title>
</head>
<body>
  <script>
    // 6个基本数据类型
    // number string null undefined boolean symbol
    // 1显示转换2.隐式转换
    // 显示转换
    // [1]Number()
    // const a  =  Number('324')
    // const a  =  Number(null)
    // const a  =  Number(undefined)
    // const a  =  Number(true)
    // const a  =  Number(false)
    // [2]String()
    // const a = String(324)
    // const a  = String(null)
    // [3]parseInt()
    // const a = parseInt('32a4')
    // const a = parseInt(2.1)
    // [4]Boolean()
    // const a = Boolean(null)
    // const a = Boolean(undefined)
    // 隐式转换 通过运算符进行隐式转换 + -*....
    // const a = '5' + 1
    // const a = '5' + true
    // const a = 5 + true

    // const a = '5' - 1
    const a = '10' / '2'
    console.log(a);
  </script>
</body>
</html>